package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 2.1 TODO 设置为配置类，加载业务层bean，加载jdbc.properties配置，导入JDBC与MyBatis配置，开启注解式事务驱动




@Configuration
@ComponentScan({"com.itheima.dao","com.itheima.service"})
//@EnableAspectJAutoProxy
@EnableTransactionManagement//开启事务管理
@Import({JdbcConfig.class,MyBatisConfig.class})
@PropertySource("classpath:jdbc.properties")
public class SpringConfig {
}
